package com.wfs.myapp.common;

import java.awt.*;

public class Constant {
    public static final String AUTHORIZATION = "authorization";
    public static final String format = "yyyyMMddHHmmssSSS";
    public static final String USER_CACHE_PRE = "user_cache_";
    public static final String BK_ORDER_PRE = "BK_O";

    // 机器人联系上下文回复的时间
    public static final Integer AI_ONE_SESSION_TIME_OUT_MINUTES = 2;
    // 百度AI access_token 前缀
    public static final String AI_TOKEN_PRE = "ai_token";
    public static final String IMAGE_BASE64_PRE = "data:image/png;base64,";
    // 微信聊天图片生成
    public static final int WIDTH = 800;    // 长宽
    public static final int HEIGHT = 600;
    public static final Color BACKGROUND = new Color(245, 245, 245);    // 背景色
    public static final int AVATAR_WIDTH = 36;  // 头像大小
    public static final int HEADER_HEIGHT = 60; // 头部图片高度
    public static final int CONTENT_PADDING = 9;    // 聊天内容的padding
    public static final int ARC_WIDTH = 10; // 圆角水平半径
    public static final int ARC_HEIGHT = 6; // 圆角垂直半径

    public static final int LINE_HEIGHT = 50; // 每轮对话的相差高度

    public static final int OTHER_NAME_X = 25;  // 对方名字定位
    public static final int OTHER_NAME_Y = 35;
    public static final int FIRST_OTHER_AVATAR_X = 35;  // 对方头像定位
    public static final int FIRST_OTHER_AVATAR_Y = 70;
    public static final int OTHER_CONTENT_PRE_X = FIRST_OTHER_AVATAR_X + AVATAR_WIDTH + 5;  // 对方聊天内容背景小尖尖图片定位、长宽
    public static final int OTHER_CONTENT_PRE_Y = FIRST_OTHER_AVATAR_Y;
    public static final int OTHER_CONTENT_PRE_WIDTH = AVATAR_WIDTH;
    public static final int OTHER_CONTENT_PRE_HEIGHT = AVATAR_WIDTH;
    public static final int FIRST_OTHER_CONTENT_X = 97;   // 对方聊天内容定位
    public static final int FIRST_OTHER_CONTENT_Y = FIRST_OTHER_AVATAR_Y;

    public static final int FIRST_MY_AVATAR_X = WIDTH - 60; // 我方头像定位
    public static final int OTHER_MY_PRE_WIDTH = OTHER_CONTENT_PRE_WIDTH;
    public static final int OTHER_MY_PRE_HEIGHT = OTHER_CONTENT_PRE_HEIGHT;
    public static final Color MY_CONTENT_BACKGROUND = new Color(149, 236, 105); // 我方聊天内容 绿色背景





}
